import asyncio
from aredis import StrictRedis

async def example():
        client = StrictRedis(host='qenqen.com', port=8379, db=7,password="redis_66filter")
        await client.flushdb()
        await client.set('foo', 1)
        assert await client.exists('foo') is True
        await client.incr('foo', 100)

        assert int(await client.get('foo')) == 101
        await client.expire('foo', 1)
        await asyncio.sleep(0.1)
        await client.ttl('foo')
        await asyncio.sleep(1)
        assert not await client.exists('foo')

loop = asyncio.get_event_loop()
loop.run_until_complete(example())